<html>

<head>
<title>Selecting Vertices</title>
<link rel="stylesheet" type="text/css" href="../../Styles/Styles.css">

</head>

<body>

<div class="PageCaption">Selecting Vertices</div>

<p>
You can select one or more vertices in either the <a href="../WorkbookTour/Worksheets.htm">Vertices worksheet</a> or the <a href="../WorkbookTour/GraphPane.htm">Graph Pane</a>.  Selecting a vertex in the Vertices worksheet automatically selects it in the Graph Pane, and selecting a vertex in the Graph Pane automatically selects it in the Vertices worksheet.
</p>

<p>
By default, selecting a vertex automatically selects its incident edges.  If you don't want this automatic behavior, go to <a href="../VisualProperties/GraphOptions.htm">Graph Options</a> and uncheck "when a vertex is clicked, select its incident edges."
</p>

<div class="HowToTitle">
To select one or more vertices in the Vertices worksheet:
</div>

<ol>

    <li class="HowToItem">
    <a href="../WorkbookTour/Worksheets.htm#SelectWorksheet">Select the Vertices worksheet</a>.
    </li>

    <li class="HowToItem">
    Select one or more rows in the worksheet.  The article <a target="_blank" href="http://office.microsoft.com/en-us/excel-help/select-cells-ranges-rows-or-columns-on-a-worksheet-HP001217040.aspx">Select cells, ranges, rows, or columns on a worksheet</a> lists a number of techniques for using the mouse and keyboard to select rows, including non-adjacent rows.
    </li>

</ol>

<div class="HowToTitle">
To deselect all vertices in the Vertices worksheet:
</div>

<ol>

    <li class="HowToItem">
    <a href="../WorkbookTour/Worksheets.htm#SelectWorksheet">Select the Vertices worksheet</a>.
    </li>

    <li class="HowToItem">
    Click anywhere outside the vertex list.
    </li>

</ol>

<div class="HowToTitle">
To select one vertex in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Click the vertex.  If other vertices were previously selected, they get deselected.
    </li>

</ol>

<div class="HowToTitle">
To select a set of vertices that are close to each other in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Drag a box around the vertices.
    </li>

</ol>

<div class="HowToTitle">
To select a set of vertices that are not close to each other in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Hold down the Ctrl key while clicking each vertex.
    </li>

</ol>

<div class="HowToTitle">
To toggle the selection state of a vertex in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Hold down the Ctrl key while clicking the vertex.  If it was selected before, it gets unselected.  If it was not selected before, it gets selected.
    </li>

</ol>

<div class="HowToTitle">
To toggle the selection state of a set of vertices in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Hold down the Ctrl key while dragging a box around the vertices.
    </li>

</ol>

<div class="HowToTitle">
To deselect all vertices in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Click any empty area in the Graph Pane.
    </li>

</ol>

<div class="HowToTitle">
To make it easier to select multiple vertices in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Click the Add to Selection button at the top of the Graph Pane.  It looks like this: <img class="EndOfLineImage" src="../../Images/AddToSelection16x16.png" />.
    </li>

    <li class="HowToItem">
    Hover the mouse over the Add to Selection button for instructions.
    </li>

</ol>

<div class="HowToTitle">
To make it easier to deselect multiple vertices in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Click the Subtract from Selection button at the top of the Graph Pane.  It looks like this: <img class="EndOfLineImage" src="../../Images/SubtractFromSelection16x16.png" />.
    </li>

    <li class="HowToItem">
    Hover the mouse over the Subtract from Selection button for instructions.
    </li>

</ol>

<div class="HowToTitle">
To perform selection tasks on one vertex in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Right-click the vertex in the Graph Pane.
    </li>

    <li class="HowToItem">
    Use one of the selection-related items in the right-click menu.
    </li>

</ol>

<div class="HowToTitle">
To perform selection tasks on <i>all</i> vertices in the Graph Pane:
</div>

<ol>

    <li class="HowToItem">
    Right-click any empty area in the Graph Pane.
    </li>

    <li class="HowToItem">
    Use one of the selection-related items in the right-click menu.
    </li>

</ol>

<hr />
<div class="MoreInformationTitle">More Information</div>

<ul>

    <li class="MoreInformationItem">
    <a href="Overview.htm"><img src="../../Images/Back.png" />Selecting Graph Elements
    </a>
    </li>

<ul>

</body>
</html>
